package cn.stylefeng.guns.sys.modular.system.ApiEntity;

import java.math.BigDecimal;
import java.util.List;

public class Qd {

    /**
     * apiKey : CRMINT
     * signature : 076695F3E88BF829EEE62237E79F6F53
     * docKey : 000600620161124000001
     * transHeader : {"txDate":"2016-11-24","ledgerDatetime":"2016-11-24 09:18:09","storeCode":"SC000002","tillId":"01","docNo":"000600620161124000001","voidDocNo":"","txAttrib":""}
     * salesTotal : {"cashier":"001","vipCode":"100","netQty":0,"netAmount":20,"extendParameter":null,"calculateVipBonus":"0"}
     * salesItem : [{"salesLineNumber":1,"salesman":null,"itemCode":"0001","itemOrgId":"000003","itemLotNum":"*","serialNumber":null,"inventoryType":0,"qty":1,"itemDiscountLess":0,"totalDiscountLess":0,"netAmount":20,"salesItemRemark":null,"extendParameter":null}]
     * salesTender : [{"baseCurrencyCode":"RMB","tenderCode":"CH","payAmount":20,"baseAmount":20,"excessAmount":0,"extendParameter":null}]
     * orgSalesMemo : null
     */

    private String apiKey;
    private String signature;
    private String docKey;
    private TransHeaderBean transHeader;
    private SalesTotalBean salesTotal;
    private Object orgSalesMemo;
    private List<SalesItemBean> salesItem;
    private List<SalesTenderBean> salesTender;

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getDocKey() {
        return docKey;
    }

    public void setDocKey(String docKey) {
        this.docKey = docKey;
    }

    public TransHeaderBean getTransHeader() {
        return transHeader;
    }

    public void setTransHeader(TransHeaderBean transHeader) {
        this.transHeader = transHeader;
    }

    public SalesTotalBean getSalesTotal() {
        return salesTotal;
    }

    public void setSalesTotal(SalesTotalBean salesTotal) {
        this.salesTotal = salesTotal;
    }

    public Object getOrgSalesMemo() {
        return orgSalesMemo;
    }

    public void setOrgSalesMemo(Object orgSalesMemo) {
        this.orgSalesMemo = orgSalesMemo;
    }

    public List<SalesItemBean> getSalesItem() {
        return salesItem;
    }

    public void setSalesItem(List<SalesItemBean> salesItem) {
        this.salesItem = salesItem;
    }

    public List<SalesTenderBean> getSalesTender() {
        return salesTender;
    }

    public void setSalesTender(List<SalesTenderBean> salesTender) {
        this.salesTender = salesTender;
    }

    public static class TransHeaderBean {
        /**
         * txDate : 2016-11-24
         * ledgerDatetime : 2016-11-24 09:18:09
         * storeCode : SC000002
         * tillId : 01
         * docNo : 000600620161124000001
         * voidDocNo :
         * txAttrib :
         */

        private String txDate;
        private String ledgerDatetime;
        private String storeCode;
        private String tillId;
        private String docNo;
        private String voidDocNo;
        private String txAttrib;

        public String getTxDate() {
            return txDate;
        }

        public void setTxDate(String txDate) {
            this.txDate = txDate;
        }

        public String getLedgerDatetime() {
            return ledgerDatetime;
        }

        public void setLedgerDatetime(String ledgerDatetime) {
            this.ledgerDatetime = ledgerDatetime;
        }

        public String getStoreCode() {
            return storeCode;
        }

        public void setStoreCode(String storeCode) {
            this.storeCode = storeCode;
        }

        public String getTillId() {
            return tillId;
        }

        public void setTillId(String tillId) {
            this.tillId = tillId;
        }

        public String getDocNo() {
            return docNo;
        }

        public void setDocNo(String docNo) {
            this.docNo = docNo;
        }

        public String getVoidDocNo() {
            return voidDocNo;
        }

        public void setVoidDocNo(String voidDocNo) {
            this.voidDocNo = voidDocNo;
        }

        public String getTxAttrib() {
            return txAttrib;
        }

        public void setTxAttrib(String txAttrib) {
            this.txAttrib = txAttrib;
        }
    }

    public static class SalesTotalBean {
        /**
         * cashier : 001
         * vipCode : 100
         * netQty : 0
         * netAmount : 20
         * extendParameter : null
         * calculateVipBonus : 0
         */

        private String cashier;
        private String vipCode;
        private BigDecimal netQty;
        private BigDecimal netAmount;
        private Object extendParameter;
        private String calculateVipBonus;

        public String getCashier() {
            return cashier;
        }

        public void setCashier(String cashier) {
            this.cashier = cashier;
        }

        public String getVipCode() {
            return vipCode;
        }

        public void setVipCode(String vipCode) {
            this.vipCode = vipCode;
        }

        public BigDecimal getNetQty() {
            return netQty;
        }

        public void setNetQty(BigDecimal netQty) {
            this.netQty = netQty;
        }

        public BigDecimal getNetAmount() {
            return netAmount;
        }

        public void setNetAmount(BigDecimal netAmount) {
            this.netAmount = netAmount;
        }

        public Object getExtendParameter() {
            return extendParameter;
        }

        public void setExtendParameter(Object extendParameter) {
            this.extendParameter = extendParameter;
        }

        public String getCalculateVipBonus() {
            return calculateVipBonus;
        }

        public void setCalculateVipBonus(String calculateVipBonus) {
            this.calculateVipBonus = calculateVipBonus;
        }
    }

    public static class SalesItemBean {
        /**
         * salesLineNumber : 1
         * salesman : null
         * itemCode : 0001
         * itemOrgId : 000003
         * itemLotNum : *
         * serialNumber : null
         * inventoryType : 0
         * qty : 1
         * itemDiscountLess : 0
         * totalDiscountLess : 0
         * netAmount : 20
         * salesItemRemark : null
         * extendParameter : null
         */

        private int salesLineNumber;
        private Object salesman;
        private String itemCode;
        private String itemOrgId;
        private String itemLotNum;
        private Object serialNumber;
        private int inventoryType;
        private int qty;
        private BigDecimal itemDiscountLess;
        private BigDecimal totalDiscountLess;
        private BigDecimal netAmount;
        private Object salesItemRemark;
        private Object extendParameter;

        public int getSalesLineNumber() {
            return salesLineNumber;
        }

        public void setSalesLineNumber(int salesLineNumber) {
            this.salesLineNumber = salesLineNumber;
        }

        public Object getSalesman() {
            return salesman;
        }

        public void setSalesman(Object salesman) {
            this.salesman = salesman;
        }

        public String getItemCode() {
            return itemCode;
        }

        public void setItemCode(String itemCode) {
            this.itemCode = itemCode;
        }

        public String getItemOrgId() {
            return itemOrgId;
        }

        public void setItemOrgId(String itemOrgId) {
            this.itemOrgId = itemOrgId;
        }

        public String getItemLotNum() {
            return itemLotNum;
        }

        public void setItemLotNum(String itemLotNum) {
            this.itemLotNum = itemLotNum;
        }

        public Object getSerialNumber() {
            return serialNumber;
        }

        public void setSerialNumber(Object serialNumber) {
            this.serialNumber = serialNumber;
        }

        public int getInventoryType() {
            return inventoryType;
        }

        public void setInventoryType(int inventoryType) {
            this.inventoryType = inventoryType;
        }

        public int getQty() {
            return qty;
        }

        public void setQty(int qty) {
            this.qty = qty;
        }

        public BigDecimal getItemDiscountLess() {
            return itemDiscountLess;
        }

        public void setItemDiscountLess(BigDecimal itemDiscountLess) {
            this.itemDiscountLess = itemDiscountLess;
        }

        public BigDecimal getTotalDiscountLess() {
            return totalDiscountLess;
        }

        public void setTotalDiscountLess(BigDecimal totalDiscountLess) {
            this.totalDiscountLess = totalDiscountLess;
        }

        public BigDecimal getNetAmount() {
            return netAmount;
        }

        public void setNetAmount(BigDecimal netAmount) {
            this.netAmount = netAmount;
        }

        public Object getSalesItemRemark() {
            return salesItemRemark;
        }

        public void setSalesItemRemark(Object salesItemRemark) {
            this.salesItemRemark = salesItemRemark;
        }

        public Object getExtendParameter() {
            return extendParameter;
        }

        public void setExtendParameter(Object extendParameter) {
            this.extendParameter = extendParameter;
        }
    }

    public static class SalesTenderBean {
        /**
         * baseCurrencyCode : RMB
         * tenderCode : CH
         * payAmount : 20
         * baseAmount : 20
         * excessAmount : 0
         * extendParameter : null
         */

        private String baseCurrencyCode;
        private String tenderCode;
        private BigDecimal payAmount;
        private BigDecimal baseAmount;
        private BigDecimal excessAmount;
        private Object extendParameter;

        public String getBaseCurrencyCode() {
            return baseCurrencyCode;
        }

        public void setBaseCurrencyCode(String baseCurrencyCode) {
            this.baseCurrencyCode = baseCurrencyCode;
        }

        public String getTenderCode() {
            return tenderCode;
        }

        public void setTenderCode(String tenderCode) {
            this.tenderCode = tenderCode;
        }

        public BigDecimal getPayAmount() {
            return payAmount;
        }

        public void setPayAmount(BigDecimal payAmount) {
            this.payAmount = payAmount;
        }

        public BigDecimal getBaseAmount() {
            return baseAmount;
        }

        public void setBaseAmount(BigDecimal baseAmount) {
            this.baseAmount = baseAmount;
        }

        public BigDecimal getExcessAmount() {
            return excessAmount;
        }

        public void setExcessAmount(BigDecimal excessAmount) {
            this.excessAmount = excessAmount;
        }

        public Object getExtendParameter() {
            return extendParameter;
        }

        public void setExtendParameter(Object extendParameter) {
            this.extendParameter = extendParameter;
        }
    }
}
